<form method="post" action="<?php echo $this->url_edit . @$edit->{$this->{$this->model}->primaryKey}; ?>"  enctype="multipart/form-data" class="form-horizontal">
<div class="row">
<div class="col-12">
	<div class="widget-box">
		<div class="widget-title">
			<span class="icon">
				<i class="glyphicon glyphicon-align-justify"></i>									
			</span>
			<h5><?php echo ((@$edit->{$this->{$this->model}->primaryKey} > 0)?'Thông tin ':'Thêm mới ').@strtolower($this->resource->RES_NAME);?></h5>
		</div>
		<div class="widget-content nopadding">
			
			<?php //echo $this->atheme->group_single_upload('userfile', 'Icon', '', ' span6', @$cate->cat_icon, 'text', '80px','80px'); ?>
			
				<?php echo $this->atheme->group_text2( 'Tên game: ','<a href="'.game_url($edit->game_id, $edit->game_code).'" target="_blank">'.@$edit->game_title.'</a>'); ?>	
				<?php echo $this->atheme->group_text2( 'Thành viên: ',@$edit->use_account); ?>	
				<?php echo $this->atheme->group_input2('edit[gscore_score]', 'Điểm', '', 'span6 ', @$edit->gscore_score, 'text', ''); ?>
				<?php echo $this->atheme->group_input2('edit[gscore_rank]', 'Xếp hạng', '', 'span6 ', @$edit->gscore_rank, 'text', ''); ?>
				<?php echo $this->atheme->group_text2( 'IP ',@$edit->gscore_ip); ?>	
				<?php if(@$edit->{$this->{$this->model}->primaryKey} > 0){ ?>
					<?php echo $this->atheme->group_text2( 'Ngày tạo: ', date("d/m/Y H:i:s",@$edit->gscore_time_update)); ?>	
				<?php } ?>
				
				
				<div class="form-actions">
					<button type="submit" class="btn btn-primary btn-small"><?php echo ((@$edit->{$this->{$this->model}->primaryKey} > 0)?'Save':'Add');?></button> or <a class="text-danger" href="<?php echo $this->url_index;?>">Cancel</a>
				</div>
		</div>
	</div>						
</div>
</div>
</form>